package com.bigmi.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bigmi.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    //批量添加关系表数据,
    // materialIds图片id，
    //     newSID文章id，
    //            type引用类型
    //            0 内容引用
    //            1 主图引用
    void saveRelations(@Param("materialIds") List<Integer> materialIds, @Param("newsId") Integer newsId, @Param("type")Short type);
}
